﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace MoListv1
{
    internal class UserListTypeStringConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is UserListType userListType)
            {
                switch (userListType)
                {
                    case UserListType.Uid:
                        return "ID";
                    case UserListType.Name:
                        return "名字";
                    default:
                        break;
                }
            }
            throw new NotImplementedException();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
